radiobutton: don't consider hidden buttons in the group for focus
authorCosimo Cecchi <cosimo@endlessm.com>
Fri, 31 Oct 2014 00:02:45 +0000 (17:02 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Sat, 1 Nov 2014 17:08:42 +0000 (10:08 -0700)
commit276a510b4b539b1bc83a07e9400fc44631cddf91
treecc0e476b05dc94427af08976689a8c212cf8dfe1
parente6e511eb460d8fcd241f202f9c3e26b0ef288927
radiobutton: don't consider hidden buttons in the group for focus

When a GtkRadioButton has no focus, it will accept it when there is no
other active button in its group.
If the active button in the group is hidden, for example because the UI
desires not to have a default option pre-selected, currently the focus
will not be accepted, which is not desired behavior.

This commit changes the code to only consider visible buttons in the
group when checking whether another button is active.

https://bugzilla.gnome.org/show_bug.cgi?id=739474
gtk/gtkradiobutton.c